<?php 
    //p9m4t5d8

    require_once 'include/funcoes.php';
    checkLogado();
     
    $_SESSION['usuario']['ultimaAtualizacao'] = date("Y-m-d H:i:s");   
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
	<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
	<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
	<title>Google Maps JavaScript API v3 Example: Event Closure</title>
<!--	<link href="http://code.google.com/apis/maps/documentation/javascript/examples/default.css" rel="stylesheet" type="text/css" />
	<link href="include/css/form.css" rel="stylesheet" type="text/css" />
	<link href="include/css/click.css" rel="stylesheet" type="text/css" />-->
<!--	<link href="include/css/datepicker_vista/datepicker_vista.css" rel="stylesheet" type="text/css" />-->
	<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
<!--	<script type="text/javascript" src="include/js/mootools-core-1.4.3-full-compat-yc.js"> </script>
	<script type="text/javascript" src="include/js/mootools-more-1.4.0.1.js"> </script>	
	<script type="text/javascript" src="include/js/infoBox.js"> </script>	
	<script src="include/js/milkbox-yc.js"></script>
	<script type="text/javascript" src="include/js/readMap.js"> </script>
	<script type="text/javascript" src="include/js/datepicker.js"> </script>-->
	<script type="text/javascript" src="include/js/data.json"></script>
	<script type="text/javascript" src="include/js/markerclusterer.js"> </script>
<!--	<link rel="stylesheet" href="include/css/milkbox/milkbox.css" media="screen" />
	<link rel="stylesheet" href="include/css/geral.css" media="screen" />-->
	<script type="text/javascript">
      function initialize() {
        var center = new google.maps.LatLng(37.4419, -122.1419);

        var map = new google.maps.Map(document.getElementById('map'), {
          zoom: 3,
          center: center,
          mapTypeId: google.maps.MapTypeId.ROADMAP
        });

        var markers = [];
        for (var i = 0; i < 100; i++) {
          var dataPhoto = data.photos[i];
          var latLng = new google.maps.LatLng(dataPhoto.latitude,
              dataPhoto.longitude);
          var marker = new google.maps.Marker({
            position: latLng
          });
          markers.push(marker);
        }
       var mcOptions = {gridSize: 50, maxZoom: 15};

var mc = new MarkerClusterer(map, markers, mcOptions);
      }
      google.maps.event.addDomListener(window, 'load', initialize);
    </script>
</head>
	<body>
	    
		    
		
		<div id="map-container"><div id="map"></div></div>		
		<br />
	</body>
</html>
